package exericiseIterator;

import gajahMadaRules.Person;

import java.util.*;

public class IteratorDemo {
	public static void main(String[] args){
		
		Person pData1 = new Person();
		pData1.setName("Mpu Tantular");
		pData1.setPhone("888-888");
		
		Person pData2 = new Person();
		pData2.setName("Ken Arok");
		pData2.setPhone("123-456");
		
		Person pData3 = new Person();
		pData3.setName("Gajah Mada");
		pData3.setPhone("080-8080");
				  
		//List<Person> personlist = arrays = arrays.aslist(arrayperson);
		 
		 
		 
		 
		  
		
		
//		Object o = new Object();
//		System.out.println(o.hashCode());
//		
//		Set s = new HashSet();
//		s.add(o.hashCode());
//		s.add(o.hashCode());;;;;;
		
	}
	
	public static void displayCollection(Collection coll){
		Iterator it = s.iterator();
		while(it.hasNext()){
			System.out.println(it.next().hashCode());
		}
	}
}
